﻿@model PinCity.Models.Accounts.User

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>User</legend>

    <div class="display-label">Login</div>
    <div class="display-field">@Model.Login</div>

    <div class="display-label">Email</div>
    <div class="display-field">@Model.Email</div>

    <div class="display-label">CreationDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.CreationDate)</div>

    <div class="display-label">LastLoginDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.LastLoginDate)</div>

    <div class="display-label">LastActivityDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.LastActivityDate)</div>
</fieldset>
<p>
    @if(this.User.Identity.Name.Equals(this.Model.Login))
    {
        @Html.ActionLink("Edit", "Edit", new { id=Model.ID })
    }
    @Html.ActionLink("Back to List", "Index")
</p>

